package net.realsee.common.enums.wcs.order;

/**
 * 单据状态（大状态）
 *
 * @author 孙正华
 * @since 2023/8/25 10:05
 */
public enum OrderStatusEnums {

    CREATED(1, "新增"),
    WAITING(2, "待执行"),
    STARTED(3, "已开始"),
    COMPLETE(4, "已完成"),
    HANG_UP(5, "挂起"),
    CANCEL(6, "已取消"),
    CLOSE(7, "已关闭"),
    FAILED(8, "失败"),
    WAIT_PRE_STEP(9, "等待前置任务结束");

    private final long code;
    private final String message;

    OrderStatusEnums(long code, String info) {
        this.code = code;
        this.message = info;
    }

    public long getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
